#include "ZTouchTCPServer.h"

using namespace std;

int main(void)
{
	ZTouch::ZTouchTCPServer server(30);
	server.startup();
	//server.termi();
	cin.get();
	server.termi();
	cin.get();
	/*
	cout<<"ipv4:"<<AF_INET<<endl; //IPv4 proto.
	cout<<"method:"<<SOCK_STREAM<<endl; //byte stream.
	
	int mySocket = socket(AF_INET, SOCK_STREAM, 0);//open socket
	cout<<"socket ID:"<<mySocket<<endl;
	
	sockaddr_in myAddr;
	myAddr.sin_family = AF_INET;
	myAddr.sin_port = htonl(PORT);
	myAddr.sin_addr.s_addr = htonl(INADDR_ANY);
	
	bind(mySocket, (sockaddr*)(&myAddr), sizeof(myAddr));
	
	if(listen(mySocket, MAXCONN) == -1)
	{
		close(mySocket);
		return -1;
	}
	
	*/
	
	return 0;
}
